package com.qianfeng.smartdevice.mapper;

import com.qianfeng.smartdevice.pojo.Categories;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CategoryMapper {
    @Select("select * from categories")
    List<Categories> findAllCategories();

    @Insert("insert into categories(categoryname,txcommand,rxcommand,commandname,status) VALUE(#{categoryname},#{txcommand},#{rxcommand},#{commandname},#{status})")
    void addCategoy(Categories categories);
}
